/**
 * 所有版权归 广西梧州 陈锦韬 所有
 *
 * @Title: RxConfigBean
 * @Package com.rx.core.bean
 * @Description: 瑞雪配置
 * @author: 陈锦韬
 * @date: 2020\4\19 0019
 * @version V1.0
 * @Copyright: 2020 陈锦韬  All rights reserved.
 */
package com.rx.core.bean;

import com.rx.core.base.RxBaseConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author: Administrator
 * @Description: 瑞雪配置
 * @date: 2020\4\19 0019
 */
@Component
@Data
public class RxConfigBean {
    @Value("${rx.feign.read-timeout:2000}")
    private Integer feignReadTimeout;
    @Value("${rx.feign.connect-timeout:3000}")
    private Integer feignConnectTimeout;
    @Value("${rx.common.oauth.enable:true}")
    private String rxCommonOAuthEnable;
    @Value("${rx.database.batch.size:1000}")
    protected Integer dbBatchSize;
    @Value(RxBaseConstant.CONFIG_STANDARD_API)
    private String rxStandardUrlStart = RxBaseConstant.STANDARD_API;
    @Value("${spring.application.name:none}")
    private String applicationName;
    @Value("${spring.application.code:000}")
    private String applicationCode;
    /**
     * json 返回字段过滤
     */
    @Value("${rx.json.filter.fields:createById,createDate,createBy,updateById,updateBy,password}")
    private String jsonFilterFields;
    /**
     * 多表关联查询字段过滤 select () form
     */
    @Value("${rx.json.filter.fields:ID,CREATE_BY_ID,CREATE_DATE,CREATE_BY,UPDATE_BY_ID,UPDATE_DATE,UPDATE_BY}")
    private String sqlFilterFields;

    @Value("${rx.data.scan.package:com.rx.vo}")
    private String rxDataScanPackage="com.rx.vo";

    @Value("${rx.common.need.token:true}")
    private String rxNeedJsonToken;

    @Value("${rx.common.need.rsa:true}")
    private String rxNeedRsa;

}
